package thread.homework;

import java.util.Scanner;

/**
 * sleep阻塞器
 */
public class Sleeppractice {
    public static void main(String[] args) {
        System.out.println("程序开始了");
        Scanner scan=new Scanner(System.in);
        int number=scan.nextInt();
        for (int i=number;i>0;i--){
            System.out.println(i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("倒计时结束");
    }
}
